/*
 * Copyright (C) 2017-2021
 * All rights reserved, Designed By
 * Copyright authorization contact 18814114118
 */
package com.shop.cereshop.app.service.shop.impl;

import com.shop.cereshop.app.dao.shop.CereShopBrandDAO;
import com.shop.cereshop.app.service.shop.CereShopBrandService;
import com.shop.cereshop.commons.domain.shop.CereShopBrand;
import com.shop.cereshop.commons.utils.EmptyUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 品牌店铺认证服务实现类
 */
@Service
public class CereShopBrandServiceImpl implements CereShopBrandService {

    @Autowired
    private CereShopBrandDAO cereShopBrandDAO;

    @Override
    public CereShopBrand findByShopId(Long shopId) {
        if (EmptyUtils.isEmpty(shopId)) {
            return null;
        }
        return cereShopBrandDAO.findByShopId(shopId);
    }
}
